gdk_event_put() copies the event and setting name, so we don't have to
authorOwen Taylor <otaylor@redhat.com>
Thu, 16 May 2002 16:54:03 +0000 (16:54 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 16 May 2002 16:54:03 +0000 (16:54 +0000)
Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
        gdk_event_put() copies the event and setting name,
        so we don't have to strdup() it here. (Fix from
        Michael Meeks, #81953)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkevents-x11.c

index 0900f89e97db64ecbface230f37d7d7d6df82ba2..0a8ca6ae3c06a16396cc979fe756ea47286a3f77 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
+       gdk_event_put() copies the event and setting name,
+       so we don't have to strdup() it here. (Fix from
+       Michael Meeks, #81953)
+
 2002-05-16  Ettore Perazzoli  <ettore@ximian.com>
 
        * gtk/gtkmenu.c (gtk_menu_paint): If the menu is scrolled down or
index 0900f89e97db64ecbface230f37d7d7d6df82ba2..0a8ca6ae3c06a16396cc979fe756ea47286a3f77 100644 (file)
@@ -1,3 +1,10 @@
+Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
+       gdk_event_put() copies the event and setting name,
+       so we don't have to strdup() it here. (Fix from
+       Michael Meeks, #81953)
+
 2002-05-16  Ettore Perazzoli  <ettore@ximian.com>
 
        * gtk/gtkmenu.c (gtk_menu_paint): If the menu is scrolled down or
index 0900f89e97db64ecbface230f37d7d7d6df82ba2..0a8ca6ae3c06a16396cc979fe756ea47286a3f77 100644 (file)
@@ -1,3 +1,10 @@
+Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
+       gdk_event_put() copies the event and setting name,
+       so we don't have to strdup() it here. (Fix from
+       Michael Meeks, #81953)
+
 2002-05-16  Ettore Perazzoli  <ettore@ximian.com>
 
        * gtk/gtkmenu.c (gtk_menu_paint): If the menu is scrolled down or
index 0900f89e97db64ecbface230f37d7d7d6df82ba2..0a8ca6ae3c06a16396cc979fe756ea47286a3f77 100644 (file)
@@ -1,3 +1,10 @@
+Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
+       gdk_event_put() copies the event and setting name,
+       so we don't have to strdup() it here. (Fix from
+       Michael Meeks, #81953)
+
 2002-05-16  Ettore Perazzoli  <ettore@ximian.com>
 
        * gtk/gtkmenu.c (gtk_menu_paint): If the menu is scrolled down or
index 0900f89e97db64ecbface230f37d7d7d6df82ba2..0a8ca6ae3c06a16396cc979fe756ea47286a3f77 100644 (file)
@@ -1,3 +1,10 @@
+Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
+       gdk_event_put() copies the event and setting name,
+       so we don't have to strdup() it here. (Fix from
+       Michael Meeks, #81953)
+
 2002-05-16  Ettore Perazzoli  <ettore@ximian.com>
 
        * gtk/gtkmenu.c (gtk_menu_paint): If the menu is scrolled down or
index 0900f89e97db64ecbface230f37d7d7d6df82ba2..0a8ca6ae3c06a16396cc979fe756ea47286a3f77 100644 (file)
@@ -1,3 +1,10 @@
+Thu May 16 12:50:13 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkevents-x11.c (gdk_xsettings_notify_cb):
+       gdk_event_put() copies the event and setting name,
+       so we don't have to strdup() it here. (Fix from
+       Michael Meeks, #81953)
+
 2002-05-16  Ettore Perazzoli  <ettore@ximian.com>
 
        * gtk/gtkmenu.c (gtk_menu_paint): If the menu is scrolled down or
index 04a671bee4639190ac4942d1950665560c1a1411..4ad531baa2c8a1178d51277b9a31f4f33227ce5a 100644 (file)
@@ -2257,7 +2257,7 @@ gdk_xsettings_notify_cb (const char       *name,
   for (i = 0; i < G_N_ELEMENTS (settings_map) ; i++)
     if (strcmp (settings_map[i].xsettings_name, name) == 0)
       {
-       new_event.setting.name = g_strdup (settings_map[i].gdk_name);
+       new_event.setting.name = settings_map[i].gdk_name;
        break;
       }